﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using WPFExcelReport.Helpers;
using System.ComponentModel;
namespace WPFExcelReport
{
    public partial class TVGS08
    { 
       
        public TVGS08()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return; 
            MV = new VGSCOLOR();
            DataContext = MV;
            InitializeComponent(); 
        }
        public override void OnEXAUFChg(string vlaue)
        {
            TBMain.Clear();
            if (EXAUF.Length < 33)
                return;
            dwData = TBMain.NewRow();
            dwData["GSCMANDANT"] = app.Mandant;
            dwData["GSCART"] = EXAUF.Substring(1, 20);
            dwData["GSCVAR"] = EXAUF.Substring(21, 3);
            dwData["GSCFARBE"] = EXAUF.Substring(24, 10);
            SResult = TMV.QGC12(dwData);
            MergeData(SResult, false);
            base.OnEXAUFChg(vlaue);
        }
        
    }
}
